<template>
  <p>数学</p>
  <p>{{age}}</p>
</template>

<script lang="ts" setup>
import { User } from '../pinia/store';
import { storeToRefs } from 'pinia';

const store = User()
const { age } = storeToRefs(store)
console.log(history.state.title)

</script>